<?php


namespace app\api\model;

use EasyWeChat\Factory;
use think\Exception;
use think\Model;


class ApiModel extends Model
{

    public function api_success($msg,$data=[],$code=200){
        return ['code' => $code, 'msg' => $msg, 'data' => $data];
    }


    public function api_error($msg,$data=[],$code=201){
        return ['code' => $code, 'msg' => $msg, 'data' => $data];
    }

}